< previous page page_316 next page >

Page 316
Data Environment Designer..
The Data Environment Designer is, in effect, a very sophisticated interface that helps you define complex database connections for use in your application. The Data Environment Designer can replace any of the three types of data access you might be using in your application. In addition, it is required if you are using the Hierarchical FlexGrid control or the Data Report Designer. This designer brings together several capabilities into one complete package. Using this designer, you can do the following:
8694cbadb9b1ef7075903f6f95fc1db2.gif
Define the database connection
8694cbadb9b1ef7075903f6f95fc1db2.gif
Create SQL commands to access the data
8694cbadb9b1ef7075903f6f95fc1db2.gif
Specify how separate commands are related to build complex queries
8694cbadb9b1ef7075903f6f95fc1db2.gif
Define aggregate functions for the query
8694cbadb9b1ef7075903f6f95fc1db2.gif
Specify the sort order of the data in the query
To create the connection, the Data Environment Designer displays a tabbed dialog that helps you define the connection to the database. Once the connection is defined, you can build commands by using the SQL Query Builder. Together, these give you a complete point and click method of building the SQL connections that your application needs. This section shows you how to create a Data Environment connection that will be used in the remaining sections of this chapter to demonstrate how to use the Data Report Designer and the Data Repeater control.
For the purposes of this chapter, you will build a query to access order information. This will be done by using both Parent and Child commands along with the SQL Builder. Table 12.1 lists the tables and associated columns that will be used, as well as the command they will be added to.
TABLE 12.1. NORTH WIND DATABASE INFORMATION.
CommandQuery TypeTableColumn
cmdCustomersSQL QueryCustomersCompanyName
Address
City
Region
ContactName
Customer ID
cmdOrdersSQL QueryOrdersCustomer ID
Order ID
continues

 
< previous page page_316 next page >

If you like this book, buy it!